package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author almost
 */
@ApiModel("修改密码")
public class ChangePassword {
    @ApiModelProperty("旧密码")
    private String oldPassword;
    @ApiModelProperty("新密码")
    private String newPassword;
    @ApiModelProperty("确认新密码")
    private String confirmTheNewPassword;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public ChangePassword() {
    }

    @SuppressWarnings("all")
    public String getOldPassword() {
        return this.oldPassword;
    }

    @SuppressWarnings("all")
    public String getNewPassword() {
        return this.newPassword;
    }

    @SuppressWarnings("all")
    public String getConfirmTheNewPassword() {
        return this.confirmTheNewPassword;
    }

    @SuppressWarnings("all")
    public void setOldPassword(final String oldPassword) {
        this.oldPassword = oldPassword;
    }

    @SuppressWarnings("all")
    public void setNewPassword(final String newPassword) {
        this.newPassword = newPassword;
    }

    @SuppressWarnings("all")
    public void setConfirmTheNewPassword(final String confirmTheNewPassword) {
        this.confirmTheNewPassword = confirmTheNewPassword;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ChangePassword)) return false;
        final ChangePassword other = (ChangePassword) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$oldPassword = this.getOldPassword();
        final Object other$oldPassword = other.getOldPassword();
        if (this$oldPassword == null ? other$oldPassword != null : !this$oldPassword.equals(other$oldPassword)) return false;
        final Object this$newPassword = this.getNewPassword();
        final Object other$newPassword = other.getNewPassword();
        if (this$newPassword == null ? other$newPassword != null : !this$newPassword.equals(other$newPassword)) return false;
        final Object this$confirmTheNewPassword = this.getConfirmTheNewPassword();
        final Object other$confirmTheNewPassword = other.getConfirmTheNewPassword();
        if (this$confirmTheNewPassword == null ? other$confirmTheNewPassword != null : !this$confirmTheNewPassword.equals(other$confirmTheNewPassword)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof ChangePassword;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $oldPassword = this.getOldPassword();
        result = result * PRIME + ($oldPassword == null ? 43 : $oldPassword.hashCode());
        final Object $newPassword = this.getNewPassword();
        result = result * PRIME + ($newPassword == null ? 43 : $newPassword.hashCode());
        final Object $confirmTheNewPassword = this.getConfirmTheNewPassword();
        result = result * PRIME + ($confirmTheNewPassword == null ? 43 : $confirmTheNewPassword.hashCode());
        return result;
    }
    //</editor-fold>
}
